package invoicesystem.service.impl;

import invoicesystem.dao.UserDao;
import invoicesystem.dao.impl.UserDaoImpl;
import invoicesystem.entry.User;
import invoicesystem.service.UserService;

import java.util.ArrayList;

public class UserServiceImpl implements UserService {

    UserDao userDao = new UserDaoImpl();

    @Override
    public ArrayList login(String username, String password) {
        return userDao.select(username,password);
    }
    @Override
    public User selectByid(int enterprise_id) {
        return userDao.selectByid(enterprise_id);
    }
}
